import { useModal } from "../../store/useModal";
import { ConfirmModal } from "./ConfirmModal";

export function ModalList() {
    const modalStoreList = useModal((state) => state.modals);
    return (
        <>
            {modalStoreList.map((store) => (
                <ConfirmModal {...store} key={store.id} />
            ))}
        </>
    );
}
